<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>

</body>
</html>
<script>
    var json = {width: 100, height:100,top:20};   //  对象形式的json
    console.log(json.width);
    //一个人信息
    var  man = [        //  数组的 json
        {
            name:"刘德华",
            age : 16,
            address: "香港"
        },
        {
            name:"张学友",
            age: 33,
            address: "澳门"
        },
        {
            name:"黎明",
            age: 55,
            address: "大陆"
        }
    ];
       // alert(man.length)
    console.log(man.width);
    for(var i=0;i<man.length;i++)
    {
        console.log(man[i].name);
    }

</script>